package com.tinem.platform.client.message;

import com.tinem.platform.module.pojo.vo.message.group.member.AddReq;
import com.tinem.platform.module.pojo.vo.message.group.member.DelReq;
import com.tinem.platform.module.pojo.vo.message.group.member.SetReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: platform
 * @description: ${description}
 * @author: eden#can
 * @Slogan: 没有所谓失败，除非你不再尝试
 * @date: 2022-08-08 15:58
 **/
@FeignClient(value = "platform-cloud-service-message",contextId = "platform-cloud-service-message.groupMemberClient")
public interface GroupMemberClient {

    @PostMapping("/group/member/add.api")
    @ResponseBody
    Object add(@Validated @RequestBody AddReq addReq);


    @PostMapping("/group/member/del.api")
    @ResponseBody
    Integer del(@Validated @RequestBody DelReq delReq);

    @PostMapping("/group/member/set.api")
    @ResponseBody
    Integer set(@Validated @RequestBody SetReq setReq);

}
